<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductAttrVal extends Model
{
    protected $table = 'product_attr_val';

    //设置主键值
    protected $primaryKey = 'id';
    public $timestamps = true;
    protected $guarded = [];

    public function productAttrKey()
    {
        return $this->belongsTo(ProductAttrKey::class, 'id', 'key_id');
    }
}
